package com.sapient.mompoc.service.impl;

import java.util.Set;

import com.sapient.mompoc.dao.ProductDAO;
import com.sapient.mompoc.dao.impl.ProductDAOImpl;
import com.sapient.mompoc.model.Product;
import com.sapient.mompoc.service.ProductService;

public class ProductServiceImpl implements ProductService {
	private ProductDAO productDAO = new ProductDAOImpl();
	private static ProductServiceImpl productServiceImpl = new ProductServiceImpl();

	private ProductServiceImpl() {

	}

	public Set<Product> getProducts() {
		return productDAO.getProducts();
	}

	public static ProductService getInstance() {
		return productServiceImpl;
	}
}
